package br.com.rafsoft.mapaentrega.server.entity;

import com.google.web.bindery.requestfactory.shared.Locator;


public class MessageLocator extends Locator<Message, Void> {

	@Override
	public Message create(Class<? extends Message> clazz) {
		return new Message();
	}

	@Override
	public Message find(Class<? extends Message> clazz, Void id) {
		return create(clazz);
	}

	@Override
	public Class<Message> getDomainType() {
		return Message.class;
	}

	@Override
	public Void getId(Message domainObject) {
		return null;
	}

	@Override
	public Class<Void> getIdType() {
		return Void.class;
	}

	@Override
	public Object getVersion(Message domainObject) {
		return null;
	}

}
